<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分类管理</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
	font-size:12px;
}
a{
	color:#333;
	text-decoration:none;
	}
dl{
	border:1px #90A2AE solid;
	padding:10px;
	margin:10px;
	background:#F0F3F5;
	}
dt{
	height:30px;
	background:#8BA2B9;
	display:block;
	clear:both;
	border-top:1px #D1DAE3 solid;
	}
.class_name{
	font-size:14px;
	font-weight:bold;
	width:200px;
	float:left;
	height:20px;
	line-height:20px;
	padding:5px 0px 5px 10px;
	color:#FFF;
	}
.class_do{
	color:#FFF;
	width:200px;
	float:right;
	height:20px;
	line-height:20px;
	padding:5px 10px 5px 10px;
	text-align:right;
	}
.class_do a:link,.class_do a:visited{
	color:#FFF;
	text-decoration:none;
	}
.class_do a:hover{
	color:#F90;
	text-decoration:none;
	}
.class_name2{
	width:200px;
	float:left;
	height:20px;
	line-height:20px;
	}
.class_do2{
	width:200px;
	float:right;
	height:20px;
	line-height:20px;
	text-align:right;
	padding-right:10px;
	}
dd{
	border:1px #D1DAE3 solid;
	border-top:0px;
	padding:5px 0px 5px 20px;
	margin-left:0px;
	display:block;
	height:20px;
	clear:both;
	}
p{
	margin:10px;
	font-size:14px;
	font-weight:bold;
	background:url(<?php echo $baseurl ?>images/admin_image/icon_top.jpg) left center no-repeat;
	padding-left:18px;
	}
.hit {
	color: #F90;
}
-->
</style>
<SCRIPT LANGUAGE="JavaScript"> 
<!-- 
function delclass(url) 
{ 
if(confirm("您确定要删除此类别吗？同时也将删除此分类下的所有文章！")){
self.location = url;
}else{
return false;;
}
} 
//--> 
</SCRIPT>
</head>

<body>
<p>文章分类管理</p>
<div>
<dl>
<?php foreach($bigclass as $bc_name){?>
	<dt><div class="class_name"><img src="<?php echo $baseurl ?>images/admin_image/bigclass.gif" width="15" height="15"><?php echo $bc_name['bc_name'] ?></div>
    <div class="class_do">
    	<a href="<?php echo $baseurl ?>manage/article/add_smallclass/<?php echo $bc_name['Id'] ?>">添加二级栏目</a> | 
    	<a href="<?php echo $baseurl ?>manage/article/edit_bigclass/<?php echo $bc_name['Id'] ?>">编辑</a> | 
    	<a href="#" onclick="return delclass('<?php echo $baseurl ?>manage/article/do_del_bigclass/<?php echo $bc_name['Id'] ?>');">删除</a>
    </div></dt>
    <?php 
	$i=$bc_name['Id'];
	foreach($smallclass[$i] as $sc_name){?>
    <dd><div class="class_name2"><img src="<?php echo $baseurl ?>images/admin_image/smallclass.gif" width="15" height="15"><?php echo $sc_name['sc_name']; ?></div><div class="class_do2"> <a href="<?php echo $baseurl ?>manage/article/edit_smallclass/<?php echo $bc_name['Id']; ?>/<?php echo $sc_name['Id']; ?>">编辑</a> | <a href="#" onclick="return delclass('<?php echo $baseurl ?>manage/article/do_del_smallclass/<?php echo $bc_name['Id'] ?>/<?php echo $sc_name['Id']; ?>');">删除</a></div></dd>
    <?php }?>
<?php }?>
</dl>
<dl>
  提示：以上列表为大类及其下属二级分类，增加大类请 <a href="<?php echo $baseurl ?>manage/article/add_bigclass" class="hit"><strong>点击此处</strong></a>。
</dl>

</div>
</body>
</html>
